﻿@using MalkiSumWeb.Controllers;
@if (MainController.IsAuthenticated)
{
    
    <div class="btn-group popupMenu parent">
    @MainController.myFirstName &nbsp; @MainController.myLastName
        <button type="button" class="dropdown-toggle btn btn-link" data-toggle="dropdown">
            @if (MainController.myPersonalImageUrl != "")
            {
                <img src="@Url.Content("~/Content/Users/" + MainController.myUserID + "/Profile/" + MainController.myPersonalImageUrl)" />
            }
            else
            {
                if (MainController.myGender)
                {
                    <img src="@Url.Content("~/Content/Users/mProfile.png")"/>
                }
                else
                {
                    <img src="@Url.Content("~/Content/Users/fProfile.png")"/>
                }
            }
            <i class="fa fa-angle-down"></i>
        </button>
        <ul class="dropdown-menu subMenu" role="menu">
            <li><a href="@Url.Content("~/Account/Profile")"><i style="float: left;" class="fa fa-user">
            </i><span style="float: left;" id="lblFirstNameMain">@MainController.myFirstName &nbsp;</span>&nbsp;<span
                style="float: left;" id="lblLastNameMain">@MainController.myLastName</span></a>
            </li>
            <li class="divider"></li>
            <li><a href="@Url.Content("~/Account/MyDocuments")"><i class="fa fa-book"></i>My Documents <strong>100</strong></a></li>
            <li><a href="@Url.Content("~/Account/MyFavourites")"><i class="fa fa-heart"></i>My Favorites <strong>27</strong></a></li>
            <li><a href="@Url.Content("~/Files/AddFile")"><i class="fa fa-book"></i>Add File </a>
            </li>
            <li class="divider"></li>
            <li><a href="javascript:void(0);"><i class="fa fa-gear"></i>Account Settings</a></li>
            <li><a href="javascript:void(0);"><i class="fa fa-question"></i>Help</a></li>
            <li class="divider"></li>
            <li><a href="@Url.Content("~/Account/LogOff")" class="lst"><i class="fa fa-power-off">
            </i>Log Out</a></li>
        </ul>
    </div>
   
}
else
{    
    <ul class="nav navbar-nav navbar-right access">
        <li><a href="@Url.Content("~/Account/LogOn")">Login</a></li>
        <li class="active"><a href="@Url.Content("~/Account/LogOn")" class="noBorder">Signup</a></li>
    </ul>   
}